import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
import orders from '@/store/modules/Orders'
import search from '@/store/modules/search'
import carts from '@/store/modules/cart'
import createPersistedState from 'vuex-persistedstate'
const store = new Vuex.Store({
	modules:{
		namespace:true,
		orders,
		search,
		carts
	},
	plugins :[createPersistedState()]
})

export default store;
